import os


class Config:
    ENV = 'development'
    DEBUG = True
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:456281937@127.0.0.1:3306/news'  # 数据库链接路径 //用户名：密码@主机名:端口号/数据库名
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SQLALCHEMY_EHCO = True
    #  密钥
    SECRET_KEY = 'kdiklfjkd87384hjdhjh'
    BASE_DIR = os.path.dirname(os.path.abspath(__file__))
    STATIC_DIR = os.path.join(BASE_DIR, 'static')
    TEMPLATE_DIR = os.path.join(BASE_DIR, 'templates')
    UPLOAD_ICON_DIR = os.path.join(BASE_DIR, 'upload/icon')